package ch.ti.bfh.app.loodel.service.vote;

import org.springframework.security.access.annotation.Secured;

import java.util.List;

@Secured({"ROLE_USER"})
public interface LearningEventVoteService {

    int giveYourTimeSlotVote(Long timeSlotId);

    int removeYourTimeSlotVote(Long timeSlotId);

    LearningEventVoteData getLearningEventVoteData(String learningEventId);

    List<CurrentMemberTimeSlotVoteData> getCurrentMemberTimeSlotVotes(String learningEventId);

    CurrentMemberTimeSlotVoteData getCurrentMemberTimeSlotVote(Long timeSlotId);

    List<AllMembersTimeSlotVotesData> getAllMembersTimeSlotVotes(String learningEventId);

    AllMembersTimeSlotVotesData getAllMembersTimeSlotVotesData(Long timeSlotId);

}
